﻿@model App.Web.ViewModels.UtilityModels.ListConfig
@using App.Web.Utility;
@using App.Web.ViewModels.UtilityModels;
@{
    ViewBag.Title = Html.GetPageTitle("Product List");
    PagerConfig _PagerConfig = Model.Pager;
    _PagerConfig.TotalRecordMessage = "Total {0} Products Found";
    _PagerConfig.UrlFormat = "/private/product/list/{0}";
    ViewBag.DataSource = Model.DataSource;
}
<div class="page-heading">
    <h1>Product List</h1>
    <div>
        Add/Edit and Manage products of your company.
    </div>
</div>
<div class="GroupBox">
    @Html.PrivateLink("Add New Product", "Edit", "Product")
    @Html.Partial("_ProductList")
    @if (_PagerConfig != null)
    {    
        @Html.Partial("_Pager", _PagerConfig)
    }
</div>
